

from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from weeklygraphcontroller import WeeklyGraphController


class WeeklyGraphHandler(webapp.RequestHandler):
  controller = WeeklyGraphController() 
   
  def get(self):
    self.controller.Run()
    self.response.headers['Content-Type'] = 'text/plain'
    self.response.out.write('Complete!')
    
     
address = "/WeeklyGraph.py/".encode("utf-8")
application = webapp.WSGIApplication([(address, WeeklyGraphHandler)], debug=True)


def main():

  run_wsgi_app(application)

nameStr = "__main__".encode("utf-8")
if __name__ == nameStr:
    main()
      
            
        
      
